const MOBILE_WIDTH = 768

const mobileRun = (windowWidth: number, callback: any, defaultFn?: any) => {
    if (windowWidth <= MOBILE_WIDTH) {
        return callback?.()
    }
    return defaultFn?.()
}

export default mobileRun